import axiosInstance from "@/utils/request";

/**
 * 登录接口基础地址
 */
enum Api {
    BASE_URL = '/book/admin',
    ADD_BASE_URL = `${BASE_URL}/insertBook`
}

/**
* 新建入库
* @param params 参数
*/
export function addBase(params: any) {
    return axiosInstance({
        url: Api.ADD_BASE_URL,
        method: 'post',
        data: params
    })
}
